package cn.nextProject.service;

import cn.nextProject.entity.User;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    PageInfo<User> findByUser(User user,int pageNum,int pageSize);

    User getUserByUsername(String username);

    User getUserByUsernameNoPassword(String username);

    void save(User user);

    User getUserByUsernameHasPass(String username);

    void updateUser(User user);

    /**
     * 查询不在某个角色组下的用户
     * @param roleGroupId
     * @return
     */
    List<User> findAllNoRoleGroup(@Param("roleGroupId")Long roleGroupId);
}
